<?php 
include_once 'include.php';

$confirmed = $_POST['confirmed'];
$id = $_POST['id'];

$BookingObj = new Booking();
$sql = "UPDATE `".$BookingObj->get_table_name()."` SET `confirmed` = '".$confirmed."' WHERE `id` = '".$id."'";
if(mysql_query($sql)){
	echo $confirmed;
}
else echo "error";
?>